package com.zxl.cityservice.controller;

import com.google.gson.Gson;
import com.zxl.cityservice.entity.TaAccount;
import com.zxl.cityservice.service.TaAccountService;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Created by 逍遥的熊 on 2017/2/16.
 */
@Controller
@RequestMapping("/account")
public class TaAccountController {

    Logger logger = Logger.getLogger(TaAccountController.class);

    Gson gson = new Gson();

    @Resource
    private TaAccountService taAccountService;

    @ResponseBody
    @RequestMapping("/user")
    public String getUserInfo(String username,String passwd){
        logger.debug("username:"+username+",password:"+passwd);
        return "1";
    }
}
